package top.yongyan0624.mapper;

import top.yongyan0624.pojo.Teacher;

import java.util.List;

/**
 * @author Yongyan
 * @description: TODO
 * @date 2020/12/23
 **/
public interface TeacherMapper {
    //添加教师
    Integer addTeacher(Teacher teacher);
    //删除教师
    Integer deleteTeacher(Integer id);
    //修改教师
    Integer updateTeacher(Teacher teacher);
    //查询所有教师
    List<Teacher> findAllTeacher();
    //根据id查询教师
    Teacher findById(Integer id);
    //根据姓名查询教师
    List<Teacher> findByName(String name);
    //查找教师
    List<Teacher> findTeacher(Teacher teacher);
    //统计老师总数
    Integer totalTeacher();
}
